using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class IP_PKT_PLISTMap : EntityTypeConfiguration<IP_PKT_PLIST>
    {
        public IP_PKT_PLISTMap()
        {
            // Primary Key
            this.HasKey(t => t.Plist_id);

            // Properties
            this.Property(t => t.Plist_id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("IP_PKT_PLIST");
            this.Property(t => t.SPID).HasColumnName("SPID");
            this.Property(t => t.K).HasColumnName("K");
            this.Property(t => t.HOSPITAL).HasColumnName("HOSPITAL");
            this.Property(t => t.Plist_id).HasColumnName("Plist_id");
            this.Property(t => t.Price).HasColumnName("Price");
            this.Property(t => t.ARE).HasColumnName("ARE");
            this.Property(t => t.OR).HasColumnName("OR");
            this.Property(t => t.L).HasColumnName("L");
            this.Property(t => t.R).HasColumnName("R");
            this.Property(t => t.A).HasColumnName("A");
            this.Property(t => t.N).HasColumnName("N");
            this.Property(t => t.CONSULTATION).HasColumnName("CONSULTATION");
            this.Property(t => t.Patdue1).HasColumnName("Patdue1");
            this.Property(t => t.Patdue2).HasColumnName("Patdue2");
            this.Property(t => t.Hospital1).HasColumnName("Hospital1");
            this.Property(t => t.Hospital2).HasColumnName("Hospital2");
            this.Property(t => t.K2).HasColumnName("K2");
            this.Property(t => t.ARE2).HasColumnName("ARE2");
            this.Property(t => t.App).HasColumnName("App");
        }
    }
}
